<template>
  <view class="me">
    <!-- 登录组件 -->
    <mylogin v-if="!token"></mylogin>
    <!-- 用户信息组件 -->
    <myuserinfo v-else></myuserinfo>
  </view>
</template>

<script>
  import mymixins from '../../mixins/mymixins.js'
  import { mapState } from 'vuex'
  export default {
    mixins: [mymixins],
    computed: {
      ...mapState('user', ['token'])
    },
    data() {
      return {

      };
    }
  }
</script>

<style lang="scss">
.me, page {
  height: 100%;
}
</style>
